package com.java2207.group1.mapper;

import com.java2207.group1.pojo.Case;
import com.java2207.group1.pojo.Cases;
import com.java2207.group1.pojo.OldMan;
import com.java2207.group1.vo.oldMan.OldManVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author HLJ
 * @Date 2022/7/26 07
 */
public interface OldManMapper {

    List<OldMan> oldManPageDate(Map<String, Object> params);

    int addOldMan(OldMan oldMan);

    int deleteOldMan(Integer id);

    int updateOldMan(OldMan oldMan);

    int removeOldMan(@Param("ids") String[] ids);

    //  ageEcharBar1 查询60-70岁年龄段老人
    OldManVo ageEcharBar1();

    //  ageEcharBar2 查询70-80岁年龄段老人
    OldManVo ageEcharBar2();

    //  ageEcharBar3 查询80-90岁年龄段老人
    OldManVo ageEcharBar3();

    List<Cases> selectCaseHistory();

    OldMan selectOldMan(String tel);
}
